/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 20px;
    background-color: #f9f9f9;
}

h1 {
    color: #333;
}

/* Table styles */
table {
    width: 100%;
    border: 1px solid #ccc;
    border-collapse: collapse;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: center;
}

thead {
    background-color: #f2f2f2;
}

/* Button styles */
button {
    padding: 8px 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

#create_new_btn {
    background-color: #28a745;
}

#create_new_btn:hover {
    background-color: #1c7430;
}

#pre_btn, #next_btn {
    background-color: #ffc107;
}

#pre_btn:hover, #next_btn:hover {
    background-color: #d39e00;
}

/* Table navigation and page info styles */
.page-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
}

.page-navigation button {
    margin: 0 5px;
}

.page-info {
    font-weight: bold;
}

/* Popup overlay styles */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
}

.popup {
    background-color: #fff;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.popup h2 {
    margin: 0 0 15px;
    color: #007bff;
}

.popup label {
    display: inline-block;
    width: 80px;
    font-weight: bold;
}

.popup input[type="text"] {
    width: 200px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 10px;
}

.popup button {
    padding: 8px 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.3s;
}

.popup button:hover {
    background-color: #0056b3;
}

.popup button.cancel {
    background-color: #dc3545;
}

.popup button.cancel:hover {
    background-color: #c82333;
}

.popup button.clear {
    background-color: #ffc107;
}

.popup button.clear:hover {
    background-color: #d39e00;
}

.popup button.restore {
    background-color: #28a745;
}

.popup button.restore:hover {
    background-color: #1c7430;
}
